package com.example.a13001.shoppingmalltemplate.utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;
import com.example.a13001.shoppingmalltemplate.R;
import com.example.a13001.shoppingmalltemplate.application.ShoppingMallTemplateApplication;

public class GlideUtils {


    public static void setNetImage(Context context, String url, ImageView imageView){
        Glide.with(context).load(url).apply(ShoppingMallTemplateApplication.options).into(imageView);
    }
    public static void setNetImage2(Context context, String url, ImageView imageView){
        Glide.with(context).load(url).apply(ShoppingMallTemplateApplication.options2).into(imageView);
    }
    public static void setNetImageNoCache(Context context, String url, ImageView imageView){
        Glide.with(context).load(url).apply(ShoppingMallTemplateApplication.options1).into(imageView);
    }
    public static void setNetImage22(Context context, String url, ImageView imageView){
        Glide.with(context).load(url).apply(ShoppingMallTemplateApplication.options22).into(imageView);
    }
}
